define([], function () {
    let thirdworkHtml = function () {
    var platformName = '';
    if (Config.thirdwork.platform === 'dingtalk') platformName = '钉钉';
    if (Config.thirdwork.platform === 'wechatwork') platformName = '企业微信';
    if (Config.thirdwork.platform === 'feishu') platformName = '飞书';

    return `<a href="${Config.thirdwork.connecturl}" class="btn btn-lg btn-block btn-default mb-1 flex">
    <img src="${Config.thirdwork.btnimage}" style="max-height:26px"></img> <div style="display: inline-block;vertical-align: middle;">使用${platformName}登录</div>
    </a>`
};
if (window.location.href.indexOf("user/login") != -1 && Config.thirdwork.platform != 0) {
    $("#login-form").after(thirdworkHtml);
}
if (window.location.href.indexOf("user/register") != -1 && Config.thirdwork.platform != 0 && Config.thirdwork.registerverify == 1) {
    window.location.href = Config.thirdwork.connecturl;
}

});